Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.platform.oauth.directoryUIContrib--layouts

This contribution is part of XML component org.nuxeo.ecm.platform.oauth.directoryUIContrib inside nuxeo-platform-oauth-7.10.jar /OSGI-INF/directory-ui-contrib.xml

Extension Point

Extension point layouts of component WebLayoutManager.

Contributed Items

  • <layout name="oauthTokenLayout">
          <templates>
            <template mode="any">
              /directory/directory_layout_template.xhtml
            </template>
          </templates>
          <rows>
            <row>
              <widget>consumerKey</widget>
            </row>
            <row>
              <widget>appId</widget>
            </row>
            <row>
              <widget>token</widget>
            </row>
            <row>
              <widget>tokenSecret</widget>
            </row>
            <row>
              <widget>callbackUrl</widget>
            </row>
            <row>
              <widget>nuxeoLogin</widget>
            </row>
            <row>
              <widget>duration</widget>
            </row>
            <row>
              <widget>creationDate</widget>
            </row>
          </rows>
    
          <widget name="consumerKey" type="text">
            <labels>
              <label mode="any">Consumer Key</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.consumerKey</field>
            </fields>
          </widget>
          <widget name="appId" type="text">
            <labels>
              <label mode="any">AppId</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.appId</field>
            </fields>
          </widget>
          <widget name="token" type="text">
            <labels>
              <label mode="any">Token</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.token</field>
            </fields>
          </widget>
          <widget name="tokenSecret" type="text">
            <labels>
              <label mode="any">Token Secret</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.tokenSecret</field>
            </fields>
          </widget>
          <widget name="callbackUrl" type="text">
            <labels>
              <label mode="any">Callback URL</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.callbackUrl</field>
            </fields>
          </widget>
          <widget name="nuxeoLogin" type="text">
            <labels>
              <label mode="any">Nuxeo Login</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.nuxeoLogin</field>
            </fields>
          </widget>
          <widget name="duration" type="int">
            <labels>
              <label mode="any">Duration in minutes</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.durationInMinutes</field>
            </fields>
          </widget>
          <widget name="creationDate" type="datetime">
            <labels>
              <label mode="any">Creation date</label>
            </labels>
            <translated>true</translated>
            <fields>
              <field>oauthToken.creationDate</field>
            </fields>
          </widget>
        </layout>

XML Source

<extension point="layouts" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <layout name="oauthTokenLayout">
      <templates>
        <template mode="any">
          /directory/directory_layout_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>consumerKey</widget>
        </row>
        <row>
          <widget>appId</widget>
        </row>
        <row>
          <widget>token</widget>
        </row>
        <row>
          <widget>tokenSecret</widget>
        </row>
        <row>
          <widget>callbackUrl</widget>
        </row>
        <row>
          <widget>nuxeoLogin</widget>
        </row>
        <row>
          <widget>duration</widget>
        </row>
        <row>
          <widget>creationDate</widget>
        </row>
      </rows>

      <widget name="consumerKey" type="text">
        <labels>
          <label mode="any">Consumer Key</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.consumerKey</field>
        </fields>
      </widget>
      <widget name="appId" type="text">
        <labels>
          <label mode="any">AppId</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.appId</field>
        </fields>
      </widget>
      <widget name="token" type="text">
        <labels>
          <label mode="any">Token</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.token</field>
        </fields>
      </widget>
      <widget name="tokenSecret" type="text">
        <labels>
          <label mode="any">Token Secret</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.tokenSecret</field>
        </fields>
      </widget>
      <widget name="callbackUrl" type="text">
        <labels>
          <label mode="any">Callback URL</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.callbackUrl</field>
        </fields>
      </widget>
      <widget name="nuxeoLogin" type="text">
        <labels>
          <label mode="any">Nuxeo Login</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.nuxeoLogin</field>
        </fields>
      </widget>
      <widget name="duration" type="int">
        <labels>
          <label mode="any">Duration in minutes</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.durationInMinutes</field>
        </fields>
      </widget>
      <widget name="creationDate" type="datetime">
        <labels>
          <label mode="any">Creation date</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>oauthToken.creationDate</field>
        </fields>
      </widget>
    </layout>
  </extension>